<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property bool $anonym 匿名:0=否,1=是
 * @property bool $score 评价分
 * @property int $goods_id 商品
 * @property int $id
 * @property int $order_id 订单
 * @property int $user_id 用户
 * @property string $content 内容
 * @property string $createtime
 * @property string $images 图片
 * @mixin \think\Model
 */
class GoodsOrderAssess extends Model
{
	protected $createTime = 'createtime';
	protected $updateTime = 'updatetime';
	
	function user()
	{
		return $this->belongsTo(User::class, 'user_id');
	}
	
	function orders()
	{
		return $this->belongsTo(GoodsOrder::class,'order_id');
	}
}
